<div *nzModalTitle> {{ isEdit ? ('mxk.text.edit' | i18n) : ('mxk.text.add' | i18n) }} </div>
<div>
    <form nz-form [formGroup]="formGroup" (ngSubmit)="onSubmit($event)" se-container="1">
        <nz-tabset>
            <nz-tab nzTitle="{{ 'mxk.organizations.tab.basic' | i18n }}">
                <nz-form-item style="display: none">
                    <nz-form-label [nzMd]="6" nzFor="id">{{ 'mxk.text.id' | i18n }}</nz-form-label>
                    <nz-form-control [nzMd]="18" nzErrorTip="The input is not valid id!">
                        <input [(ngModel)]="form.model.id" disabled="{{ isEdit }}"
                            [ngModelOptions]="{ standalone: true }" nz-input name="id" id="id" />
                    </nz-form-control>
                </nz-form-item>
                <nz-form-item>
                    <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="tableName">{{ 'mxk.tables.tableName' | i18n
                        }} </nz-form-label>
                    <nz-form-control [nzSm]="18" [nzMd]="18" [nzXs]="36" [nzXl]="48"
                        nzErrorTip="The input is not valid tableName!">
                        <input [(ngModel)]="form.model.tableName" [ngModelOptions]="{ standalone: true }" nz-input
                            name="tableName" id="tableName" />
                    </nz-form-control>
                </nz-form-item>
                <nz-form-item>
                    <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="comments">{{ 'mxk.tables.comments' | i18n }}
                    </nz-form-label>
                    <nz-form-control [nzSm]="18" [nzMd]="18" [nzXs]="36" [nzXl]="48"
                        nzErrorTip="The input is not valid comments!">
                        <input [(ngModel)]="form.model.comments" [ngModelOptions]="{ standalone: true }" nz-input
                            name="comments" id="comments" />
                    </nz-form-control>
                </nz-form-item>

                <nz-form-item>
                    <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="sortIndex">{{ 'mxk.text.sortIndex' | i18n }}
                    </nz-form-label>
                    <nz-form-control [nzSm]="18" [nzMd]="18" [nzXs]="36" [nzXl]="48"
                        nzErrorTip="The input is not valid sortIndex!">
                        <input [(ngModel)]="form.model.sortIndex" [ngModelOptions]="{ standalone: true }" nz-input
                            name="sortIndex" id="sortIndex" />
                    </nz-form-control>
                </nz-form-item>
                <nz-form-item>
                    <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="status">{{ 'mxk.text.status' | i18n }}</nz-form-label>
                    <nz-form-control [nzSm]="14" [nzXs]="24" nzErrorTip="The input is not valid status!">
                        <nz-switch [(ngModel)]="form.model.switch_status" [ngModelOptions]="{ standalone: true }"
                            name="status" [nzCheckedChildren]="checkedTemplate"
                            [nzUnCheckedChildren]="unCheckedTemplate"></nz-switch>
                        <ng-template #checkedTemplate><i nz-icon nzType="check"></i></ng-template>
                        <ng-template #unCheckedTemplate><i nz-icon nzType="close"></i></ng-template>
                    </nz-form-control>
                </nz-form-item>
            </nz-tab>
        </nz-tabset>
    </form>
</div>

<div *nzModalFooter>
    <button nz-button nzType="default" (click)="onClose($event)">{{ 'mxk.text.close' | i18n }}</button>
    <button nz-button nzType="primary" (click)="onSubmit($event)">{{ 'mxk.text.submit' | i18n }}</button>
</div>